import { request } from "../request";
import {
    MOIVESLIST,
    RATEDMOVIES,
    MOIVESINFO,
    SHOWDAYSLIST,
    SHOPLIST,
    CINEMA,
    MOSTEXPECTED,
    COMINGLIST,
} from "../apis/instance";

// 获取好评电影列表html
export function getRatedMovies() {
    return request({
        url: RATEDMOVIES,
    });
}

// 获取首页电影列表list
export function getHomeMovieList() {
    return request({
        url: MOIVESLIST,
    });
}

//获取电影列表详情
export function getMoviesInfo(id) {
    return request({
        url: MOIVESINFO + id + ".json",
    });
}

// 获取展示购买时间列表
export function getShowDaysList(data) {
    return request({
        url: SHOWDAYSLIST,
        params: data,
    });
}

// 获取每天可以购票门店
export function getShopList(data) {
    return request({
        url: SHOPLIST,
        params: data,
    });
}

// 获取影院页面影院列表
export function getCinemas(data) {
    return request({
        url: CINEMA,
        params: data,
    });
}

// 获取待映期待电影列表
export function getMostExpected(data) {
    return request({
        url: MOSTEXPECTED,
        params: data,
    });
}

// 获取当天待映电影列表
export function getComingList(data) {
    return request({
        url: COMINGLIST,
        params: data,
    });
}
